package com.avengers.mobile.layer.serviceimpl;
import java.util.List;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.avengers.mobile.layer.dao.ClienteDao;

import com.avengers.mobile.layer.model.Cliente;

import com.avengers.mobile.layer.service.ClienteService;

@Service("clientService")
@Scope("singleton")
public class ClienteServiceImpl implements ClienteService {
 
    @Autowired
	ClienteDao beanClienteDao;

	@Override
	public List<Cliente> findClienteList() throws Exception {
		return beanClienteDao.findClienteList();
	}

	public Cliente findClienteById(int id) throws Exception {
		return beanClienteDao.findClienteById(id);
	}
		
}